Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.User = undefined;
var n = function () {
  function e() {
    this._platform = {
      avatarUrl: "",
      nickName: ""
    };
    this._server = null;
    this._code = "";
    this._openId = null;
    this._unionId = null;
  }
  e.getInstance = function () {
    var t;
    null !== (t = this._instance) && undefined !== t || (this._instance = new e());
    return this._instance;
  };
  Object.defineProperty(e.prototype, "platfrom", {
    get: function () {
      return this._platform;
    },
    set: function (e) {
      Object.assign(this._platform, e);
    },
    enumerable: false,
    configurable: true
  });
  Object.defineProperty(e.prototype, "server", {
    get: function () {
      return this._server;
    },
    set: function (e) {
      this._server = e;
    },
    enumerable: false,
    configurable: true
  });
  Object.defineProperty(e.prototype, "code", {
    get: function () {
      return this._code || "";
    },
    set: function (e) {
      this._code = e;
    },
    enumerable: false,
    configurable: true
  });
  Object.defineProperty(e.prototype, "openId", {
    get: function () {
      return this._openId || "";
    },
    set: function (e) {
      this._openId = e;
    },
    enumerable: false,
    configurable: true
  });
  Object.defineProperty(e.prototype, "unionId", {
    get: function () {
      return this._unionId || "";
    },
    set: function (e) {
      this._unionId = e;
    },
    enumerable: false,
    configurable: true
  });
  return e;
}();
exports.User = n.getInstance();